<template>
	<view class="content">
		<!-- <view class="cu-bar flex justify-center">
			<text class="text-bold text-xl">注塑报表软件（注塑组长）</text>
		</view> -->
		<view class="bartop"></view>
		<view class="cu-bar">
			<view class="action"></view>

			<view class="text-lg text-bold">
				组装报表软件（组装班长）
			</view>
			<view class="action">
				<text class="text-lg" style="color: #13227a;" @tap="logout">退出</text>
			</view>

		</view>
		<view class="cu-list grid no-border margin-top-xl" style="background: none;">
			<navigator class="cu-item align-center" url="/pages/assemble_director/form_list_today/form_list_today">
				<image src="@/static/report.png" class="png" mode="aspectFit"></image>
				<text class="text-right1" style="font-size: 38rpx;
			font-weight: bold; color: black;">待审核报表</text>
			</navigator>

			<navigator class="cu-item align-center" url="/pages/assemble_director/form_list_history/form_list_history">
				<image src="@/static/report.png" class="png" mode="aspectFit"></image>
				<text class="text-right1" style="font-size: 38rpx;
			font-weight: bold; color: black;">已审核报表</text>
			</navigator>
			<navigator class="cu-item align-center" url="/pages/assemble_director/claim_list/claim_list">
				<image src="@/static/report.png" class="png" mode="aspectFit"></image>
				<text class="text-right1" style="font-size: 38rpx;
			font-weight: bold; color: black;">半成品支领</text>
			</navigator>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {

		},
		methods: {
			logout() {
				uni.showModal({
					title: '提示',
					content: '是否确定退出登录？',
					success: (res) => {
						if (res.cancel == true) {

						} else {
							uni.showLoading({
								title: '正在退出登录...',
								mask: false
							});
							this.$cache.remove("token")
							this.$cache.remove("userId")
							this.$cache.remove("groupId")
							this.$cache.remove("roleId")

							setTimeout(() => {
								uni.hideLoading()
								uni.reLaunch({
									url: "/pages/login/login"
								})
							}, 2000)
						}
					}
				})
			}
		}
	}
</script>

<style>
	navigator {
		width: 50%;
	}

	.png {
		width: 140rpx;
		height: 140rpx;
	}
</style>
